package cn.yanjr.system.service;

import java.util.List;
import java.util.Map;

import cn.yanjr.system.entity.SysMenu;
import cn.yanjr.system.entity.SysRole;


public interface SysRoleService {
	
	
	/**
	 * 分页查询
	 * @param param
	 * @return
	 */
	public Map<String, Object> queryPage(Map<String, Object> param);
	
	public List<SysRole> getAll();
	
	public List<SysRole> getUserRoles(String userId);
	
	public List<String> getUserRoleNames(String userId);
	
	public SysRole get(String id);
	
	public int save(SysRole role);
	
	public Map<String, SysMenu> getMenusByRoleId(String id);

	public Map<String, Object> saveRoleMenu(String roleId, String[] menus);
	
	public Map<String, Object> delete(String id);
}
